//
//  HRZLocalDataManager.m
//  EMarket
//
//  Created by 石头 on 2018/5/23.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZLocalDataManager.h"

// Controllers

// Models

// Views

// Vendors

// Categories

// Others
#import "HRZUserCollectManager.h"
#import "HRZShoppingCartManager.h"
#import "HRZAddressDataBase.h"

@interface HRZLocalDataManager ()

@end

@implementation HRZLocalDataManager

+ (instancetype)shareLocalDataMgr {
    static HRZLocalDataManager *_localDataMgr = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _localDataMgr = [[HRZLocalDataManager alloc] init];
        [_localDataMgr initDataManager];
    });
    return _localDataMgr;
}

- (void)initDataManager {
    self.shoppingCarMgr = [HRZShoppingCartManager shareDefaultManager];
    self.userCollectMgr = [HRZUserCollectManager shareDefaultManager];
    self.addressMgr     = [HRZAddressDataBase sharedDataBase];
}


@end
